Add swiping method.