Support for Debug function