Forward encoding.