Add possibility to pass arguments to instance created with newInstance()