Changed Parameters and SetParameters to Marshal and Unmarshal slice. Added parameter maps