I think we should add a docstring here about how this handles two types of markers, etc. and what it does.