Port and encoding added.