Made some MIDI stuff better