Makes random-copy script work.