Added code: Made singleton, with two methods.