Toggle closed flag on click.
Separated out assign positions into own func.
Allow override for assign-positions.
Track NEXT-POSITION instead of using count.