Misplaced for loop making multiple lists. Fixes #23