Send debug messages to the console only when debug setting is enabled.
Removed debugs from the hardcore module