Initial port of euclid-wm