Forked from http://code.google.com/p/gord/