Add MIN and MAX procedures