Fixed generate routes. Wrote main to handle full process, with 6 minute wait time
Change wait time to 5 minutes.