Imported base code.