Added getInstance method.