Added the fixed swipe functionality to the program.