Implement minimum functions.