Rewrite to ensure ConfigFile class is loaded first