Use SliceReader to simplify code