Removing warnings from using max and min functions in core/api