Minor modifications to min-max kernel