Fixed monitor subscriber to use function param instead of singleton