Add logging calls (Closes #45).