Added setTimeout to Advanced example