Added the play functionality