Added a pagesize argument to get_publications