Added support for swiping.