Useful scripts used in GFIMAX