Added functionality for specifying end date and time. Now the user can
specify exact interval.