Added the loop_index at the stackframe class.