Added averaged debug output