Actually try to do memory correctly