Removed error messages in console and improved debug mode.