Add memory debugging features.