Changed the Config system to use an OO method instead of defined constants.