Bug fix where variable sock was not set when passed into setParameters.