Update and rename encode to p10