State machine for SD POC.