Added setWithinOi to condense code.