Import from TMP_CODE (the other one, check if this has any significant changes)