Bumped up to 1024 (if you risk going over that you're crazy!), made that value a constant, and added an exit error case (just a console log) if that's exceeded.