Added O() timing logic.