Generate code which uses indexes, if they are present.
Generate code which uses indexes, if they are present.