Changed to watchFile to support SMB