Added helper to swipe method.