Add block encoding