Method that handles the actual callback routing.