Added support for auto play.