Clean up temp files better
Randomization of rotation sleep should actually use rand value
Add test for glob + existing files + new files