Allows setting port state