Adds memory debugging, logging