Issue #32: Updated "next variation" algorithm to properly select next index instead of relying on incrementing metadata value.
Merge pull request #35 from Cobra1117/master

Reolves Issue #32: Updated "next variation" algorithm to properly select next index