Fixes #4, adds logging back