Moved the indent variable inside foreach loop to see what difference it
makes