Change cmds value to use array