Created a getInstance() func. for Editor