Added upperbound and lowerbound support