Currently tail calls are optimized only if a function calls itself. But they should be optimized if a function calls any other function.