Rewrote memory submodule to static object