Code changes for find, next, add, min, and max