Initial step for splitting mp::connect into gui and engine.