Simplified max/min statement