Add auto-play function. Some adjustments with details.