added sleep param to getTimeline