Imported exists code.