Implemented swap plugin