State variables do not yet work because a system is needed to handle late registration of them as state variables.