Removed unnecesary delete calls.