MP1 plugin - added some comments to make it more readable