Added monitor for debugging