Not yet working but added a checking for identified not defined memory references