Further wip re encoding.