Added probability functions for packet loss/corruption.