Simplify the lower/upper testing