Imported version 0.30 for posterity.