Add setTimeout and setInterval