Added totalizer legacy code