Added --begin_date and --end_date functionality