Added gear.c and .h.