Fixes GH issue #10, might need to rethink logging a little bit