swap plugin: Improvements for the percent code: