Updates for encoding