Updated logging a little bit