Add range validation and normalization