Init, only console log if debug flag set to true