Removed console.debug statements from code