State machinery