Seems to (more or less) properly get LHS variables from loops
Done with step 2.
Deleted whitespace