Updated intentsApi to allow inheriting state.