Adds the simple index and list code.