Added beging and end of day