Add C99 standard for inline loop variable declaration
Add reporting function to show progress every so many iterations