Added to OpenVix3.2-030. Although slightly different (all code put into a the function, even the invarient bits).