Made pagination addition to the index.