I think it's easy to get rid of these flags as they are not needed. We can simply check for cxt->m, start_time and end_time.