Added a timer to problem solving.