Forgot to add the getCmd function