Added port functionality