Add support for incremental decoding