Modified version to work on the latest iTunes.