Added created and deleted state variables