Loop and add debugging option with macros.