Improved debug logs store. Added new global functions.