Preparing to encode
...