Added cext function