Added in range check and rounding capabilities