Added: Functionality to check if packet received is error packet, and
handle error packet correctly. Not yet tested.