Code for the new version of cus-ofs

Please add it to the repository, thank you.