Removed console.logs used for debugging.