Making State an interface instead of a struct.