Moved method from application_controller to movies_controller.