Extracted code from another project.