Added return codes for incremental generation