Change to set object state