Logging: added external logging