Added automatic packet encryption