Added methods ProcessDigitInput and method ProcessCommandInput