 			}
 		}
 
-		@SendWindows8Data(requestOptions, tileData, userInfo)
+		@SendWindows8Data(requestOptions, tileData)
 
 		tileData = """<badge value="#{count}" />"""
 

			}
		}	

		@SendWindows8Data(requestOptions, tileData, userInfo)

	SendWP7Notification: (requestOptions, payload, userInfo) =>
		request = http.request(requestOptions, (res) =>
			notificationStatus = res.headers['x-notificationstatus'].toLowerCase()
			deviceConnectionStatus = res.headers['x-deviceconnectionstatus'].toLowerCase()

							body = latestResult.child('body').toString().substr(0, 40)

							logger.verbose("Latest Author: #{author} Body: #{body}")
							logger.verbose("@userInfo #{JSON.stringify(@userInfo)}")
							if (@userInfo.hasOwnProperty('notificationUri'))
								if ((@userInfo.notificationType is '2') or (@userInfo.notificationType is '1'))
									#The count of new replies is the total number of current replies minus the number of replies the app last knew about
									@SendWP7TileNotification(parseInt(totalResults) - parseInt(@userInfo.replyCount), author, body)
									if (@userInfo.notificationType is '2')
										@SendWP7ToastNotification(author, body)
								else if (@userInfo.notificationType is '3')
									@SendWindows8Notification(parseInt(totalResults) - parseInt(@userInfo.replyCount), author, body)
							else 
								logger.info('Would send push notification of\n  Author: ' + author + '\n  Preview: ' + body)

					#Since we got new stuff, it's time to update the current count.
					@userInfo.replyCountLastNotified = totalResults
					fileNameToSave = path.join(subscriptionDirectory, @userInfo.deviceId)
					fs.writeFile(fileNameToSave, JSON.stringify(@userInfo), (err) =>
						if (err)
							logger.info("Error saving file " + fileNameToSave + " " + err)
						else 
							logger.info("Saved updated file " + fileNameToSave + " for username " + @userInfo.userName + "!")
					)
				
				else 
					logger.info('No new replies for ' + @userInfo.userName + ', previous count notified at was ' + @userInfo.replyCountLastNotified + ' current count is ' + totalResults);
				
			)
		)

class Processor
	constructor: (directoryToProcess) ->
		@directoryToProcess = directoryToProcess

	Process: () =>
		@wnsConfig = new WNSAuthentication()
