Add detection of interval emulation with setTimeout, prevent recursion
Fix recursion detection and prevention