Added functionality to Swipe Class