Extract app_run method from Frame_app class.