Add support for marked ranges