Add port flag to server, add small simplifying function regarding powers with another power as root