Added getInstance() method.