Constructor mechanism to pass encoder and decoder options