Replaced getMarked() with getMarkAndRef()