Include an option to resume encoding
Default limits for skip, encode
Remove debugging
Use function variables
Use internal model
Use internal model