Added bpm definition. Added new triggers. All millisecond values are now integers.