Swipe base code
Merged