Add stateful offset lookup
Examples