Added port read in protocol handler