Rewrote config file into an object