Added a first draft for some logging