Add documentation to main.
Add random delay between 1 and 2000 milliseconds.