Detect memory