ENH: code uploaded from https://nitrc.org/svn/cmfreg version 68