Modified topPages function to have a default of None for the filter parameter.