This was close but it kept creating the instance over and over on every call of this module because I think the variable was in a new function constructor every time: