Optimized from 2086th version of Owltools