Improved store method of Debug class