Could we avoid calling this if the total pages count is equal to or less than 5?