Adding port for the counter. Correcting size of the iv.