Flush stdout after Print command
Fix (again) fns depths calculation