Hm, not sure if I can help you, because it requires specific data. Tell me exactly what are you going to use it for, the exact times and how you would like those timed actions to be recognised by the system. Tell me what actions you want the unit to do, before the bar's duration is over. Explain everything, so that it becomes easier and faster to create :]