Added logic to create and delete domain data.