Catch infinite loops in formats.