Added check to see if monitor is on or off