Don't use min max functions