Changed Monitor interface, added support for pdf/txt