Min/max functions definitely working