Add advanced date search. Manually merged.