Add "g" and "G" commands