Adds comparison method and command form to index