Moved method within controller. Makes more sense for it to be located within.