Ah! I guess I didn't read enough into MIN and MAX; I thought they only worked with arrays.