Removed some debug messages and warnings.