Logging into debug output added