Added flags to filter by date of publication