Fork from http://timeandmoney.sourceforge.net/