Changes fixed indents array to dynamic stack object