Add history handling for sources.