Added swipe detection