Fixing Synchronous logging and demo