Added some more log_rest() calls to make it easier to read the output.