Moved Swap method to Helpers