More debug, fixes of warnings.