changed character limit to 10. Also made the console logs more useful for debugging