Add a state attribute for removing objects