Updated for iTunes 11 compatibility.