Removed a lot of console.logging.