Notes added and a while loop in receive handler to avoid overflow