Added code to translate loops to output language. TODO: Keep track of label names.