Added the MIDI wrapper and loop manager