Updated to set titles based on the date