First cut at tagging function for dwm