Adding swipe functionality.