Updated template pagination to make a reverse listing optional.