Add WM detection