Putting doc in "($Alarms)"

I’m having an issue with some LS putting my doc in the “($Alarms)” folder. What am I doing wrong with this code? The other internal alarm fields are getting set properly, but I just get this doc in my ($Alarms) folder.

Sub Initialize

Dim ss As New notessession

Dim db As notesdatabase

Dim item As notesitem

Dim webdoc As NotesDocument

Dim doc As NotesDocument

Dim startdttm As NotesDateTime

Dim enddttm As NotesDateTime

Dim Description As Variant

Dim Exclude(1) As String

Dim rtitem As NotesRichTextItem



Set db = ss.CurrentDatabase

Set doc		= New NotesDocument( Db )		

Set rtitem 	= New NotesRichTextItem(Doc, "Body" )

Set webdoc = ss.DocumentContext



doc.form = "Appointment"

doc.AppointmentType = "3"

doc.NoticeType = "I"

doc.Alarms = "1"

Set item = New NotesItem(doc, "$Alarm", 1) 

item.IsSummary = True

Set item = New NotesItem(doc, "$AlarmOffset", -30)



doc.Subject = "Session Notification: " & webdoc.Class(0)

doc.Location = webdoc.location(0)

doc.Logo = "AcNotesLtr"



Set startdttm = New NotesDateTime(webdoc.date(0) & " " & webdoc.time(0))

Set enddttm = New NotesDateTime(webdoc.enddate(0) & " " & webdoc.endtime(0))

doc.CalendarDateTime = startdttm.LSLocalTime

doc.StartDateTime = startdttm.LSLocalTime

doc.StartDate = startdttm.LSLocalTime

doc.StartTime = startdttm.LSLocalTime

doc.EndDateTime = enddttm.LSLocalTime

doc.EndDate = enddttm.LSLocalTime

doc.EndTime =enddttm.LSLocalTime

Call rtitem.AppendText(webdoc.Description)



Exclude(0) = "D"

Exclude(1) = "S"	

Set Item = Doc.ReplaceItemValue("$StorageTo", "1") 

Set Item = Doc.ReplaceItemValue("$PublicAccess", "1") 

Set Item = Doc.ReplaceItemValue("CalendarDateTime", webdoc.date(0))

Set Item = Doc.ReplaceItemValue("ExcludeFromView", Exclude)

Set Item = Doc.ReplaceItemValue("_ViewIcon",133)

doc.tmpDoNotProcess = "1"	



Call Doc.ComputeWithForm (True, False) 

Doc.Principal = "xxx"

Doc.ReplyTo = "xxx"

Doc.INetFrom = "xxx"

Call doc.Send( False, webdoc.StudentInitials(0))	

Call doc.PutInFolder("($Alarms)") 

End Sub