Begin task runner (renamed from dispatcher) code