Added delete reference support