Updated event parallelism algorithm; added a total_schedule_cycles counter.