Fix mark.
Added next and afterLast functions.