Added autoplay and interval to API