Made the controller skinnier by creating a custom config file and cutting out redundant code