URLs are now written to file and start index and sleep time are configurable via variable