Adding utility method to controller