CR changes: use $this->app instead of F::app()