Moved all process startup code into the delegate.

That way, it has way more control, which can be useful now when dealing with tank