Rough implementation of monitor