CommandIndex is working