Changed variable name markerN to marker