Adding in a way to print out the entire index