Add logging (fix indent)