Task based dispatcher