Added a useful index method