updated to include time taken.