Adds getInstance() method