Fix bug with how generate was portioning out files.