Added samefile option.