Start writing wm api