Adding missing SwapClear implementation.