Old code from ICSM 2010 paper