Function outof the controller, test.