Encode is not used now.