Removed console.log calls which are no longer needed.