Pass the dispatcher as a constructor argument