Bug fix, removed console.log debug statements