added plugin to calculate pulse length