Rev. 7

Added pulseLength localvar