Small improvement of read_port() function.