Made a generator for handlers so that way functions dont use boilerplate code