Modified to output onset times