Add logging (experimental)