Added copy from source script.