Move watching code to new thread to not block the server.