Revise 'gl' alias and convert 'gr' to a function