Add configuration to help debug memory leaks