Removed console debugging statements.