Added beginDate and endDate parameter to metric generation.
Using beginDate and endDate only, for now.