Added sign for min and max