Update gll_routines.r