Implemented block swap.