Removed debugging writing to the console.