Readded checks for bad input values to within.