Added a bit of memory access detection.