Moved start time at beginning of main()