Add some support methods for indexing.