Implemented swaps.