Add some debugging messages. Clean up backup loop.