Add on the fly encoder