Added connection handler. Moved welcome text logic to connection handler. Added wait mask.