Added packet loss option