Streamlined for use in other packages.