Adds logging instead of println