Using a container to control the handler instances