Added further optimization on adding playlist items.