Added magic method allows getting state data