R-scripts with utility functions for GSCF