Hooked up monitor callback on OS X.