Added over and underflow functions.