I guess the variable 'ch' is never used, right?