Fixed a number of bugs related to the new STED parameters.