Added secure messaging functionality.