Initialize first path correctly in sequence builder, not to 0
Some refactoring cleanup