Allow setting parameters in the constructor