Logging guid and fixed bugs