Added timer to main