Update with EOM detection and maximum length.

Note that a pulse can also have spikes in them.