Imported from original project.