https://github.com/xiangfstats/GenieR