Made typeOfDay a vector.