Removed console.log debugging