Updated for ARC compatibility.