Started adding functions to handle the logic needed to keep track of the ascent and descent.