Add next_marker method (#48