Added config file loading logic