Fix unused variable
Refactor response (client) ack handling
Adjust debugging
Extract determine_report_action
Actually update last_processed used for report determination