Monitor now accepts function argument.