Added swipe functionality.