Made MonitorWithPattern get information from the superclass rather than hardcoding the same information twice