https://github.com/pdpdds/CGSF