Code relicensed under BSD 3-clause license.