Add optional filtering to read_source.