Fix error checking for strtol().
Add constants to script to set iterations / sleep