Error in setControlParameters and removal of unnecessary compiler warnings.