Removed debugging console.logs.