Specify the directory to be monitored by calling listen() instead of in the constructor.