Changed fileList.pageSize to function call