Added teh possibility to specify either the scale factor or the parameters