Adds a configure method to controller.