Added Cody Horst's function, cody.