Cleaned up function name PairWithPrevious