             SendText("Wrong arguments.", toRoom: forRoom)
             return
         }
+        let store = CNContactStore()
         
         //Attempt to open the address book
         if let book = ABAddressBook.shared() {

            
            //We need to create the contact
            if (peopleFound?.count == 0) {
                let newPerson = ABRecord();
                
                //If it contains an at, add the handle as email, otherwise add it as phone
                if (forRoom.buddyHandle!.contains("@")) {
                    ABRecordSetValue(newPerson, kABEmailHomeLabel as CFString, forRoom.buddyHandle as CFTypeRef)
                }
                else {
                    ABRecordSetValue(newPerson, kABPhoneiPhoneLabel as CFString, forRoom.buddyHandle as CFTypeRef)
                }
                
                //Set name and note, add it, then save.
                ABRecordSetValue(newPerson, kABFirstNameProperty as CFString, parsedMessage[1] as CFTypeRef)
                ABRecordSetValue(newPerson, kABNoteProperty as CFString, "Created By Jared.app" as CFTypeRef)
                book.add(newPerson)
                book.save()
                SendText("Ok, I'll call you \(parsedMessage[1]) from now on.", toRoom: forRoom)
                
            }

import Cocoa
import JaredFramework
import AddressBook
import Contacts

public func NSLocalizedString(_ key: String) -> String {
    return NSLocalizedString(key, tableName: "CoreStrings", comment: "")
