Added process method to the controller template