Use operators instead of Math.max/min