Add gadd and gci functions