Added the monitor class