Changed input port implementation.