Added functions to controller