Exposing _ratio for testability