Allow multiple sets of autos, fixes #34.
Fix do while loop.