Removed debug line. Added console.log option.