Refactored out business logic from the dispatcher
Refactored out business logic from dispatcher
Initial commit