Added bounds checking to the discrete characteristic