Code distributed under the simplified BSD license