remove old comment.
consistent variable name.
Use nextMarker instead of calculating based on last observed element.