Updated getCommand to new command