Split the input handling function into functions for each command
Split the numeric handling function into multiple functions as well