Adds logging to build_string.
Fixes #10