Try out fancy min() function