Added auto play functionality