Since we're using the parameter named "base" here, probably should adjust the rangeerror to say the base is out of range.