Removed previously added copyparameters function