Added day of the week code