Add weekday function.