Adding RunLock and MidiRestart options

Work in progress