Tweaked monitoring and made parameters configurable via the registry.