From http://sourceforge.net/p/openpopulous/