Adding debug mode and messages to system setting