Hack from an old YRS-Hackathon.