Pass arguments through getInstance() to constructor