Hi Leonid, really good job, I tried to propose a faster function but failed. Just one question: Is "endfunc" a variant of "endsub" ?