Pass all method parameters in constructor
Support deprecated for a while