Replaced -maxsamples 10000 with -maxsamples $MaxSampleVIEvent to ensure consistency with other plugins
Ref: issue #41