Make first function in controller