Support for upper and lower functions on range