Removing extra debug messages and disabling debug