Check minimum function.