Working on more flexible encoding options.