Added option to mutate source document