Change IN_CORE to XFRAME