Changed command parsing to use table of function pointers.