Integrate Brendan's stuff. Need to resolve messagequeues in Process class