Added primitive timing code