Remove index and total from PHP debug output for syncing
Merge Mike's changes to debug appending