Basic State System. Function bodies still need filling.