Added timer object to measure elapsed time