Safely add state so it's not reference to another object.