Removed unnecessary clearConfig()