Somewhat more elaborate approach, but that actually works.