Added setTimeout and setInterval