Figured out how to find runs of ascending and descending.