Added authentication and protection against replay attacks.