upd: Logging added