Made configurable first/last, next/previous markers

Fixed patch.