Replaced YOST code with more functionally equivalent code that