Added and configured logging