Match the command to the function.