Removed some unused variables, made load config loop more clear