Made the configuration of each handler parametrized