Implemented skeleton. Takes parameters and passes to correct handlers.