Moved $ratio-values to Internal variables