Work on managing local memory management (incomplete)