Fixed the config and removed some debug messages