Removed console.log debugging statements