Imported code from other project.