Import from http://code.google.com/p/beastii/