Added local variable to ensure n2 consistency throughout method.
Fixed blips in output by waiting longer to write to output buffer.