Changes setInterval to setTimeout chain