Planned and wrote all of kma_bud's functions. Currently seg faulting on first trace.