Better exception
Reducing at end of input