Switch sample processor to stateful