added timing system for entire program.