Import code from os.core