     
     // Return whether the selected project is suitable for script execution
     func isSelectedProjectValid() -> Bool {
-        return (selectedProject != nil) ? ProjectValidator.isProjectValid(selectedProject!) && selectedProject!.hasValidAssetsPath()
-                                                : false
+        return (selectedProject != nil) ? ProjectValidator.isProjectValid(selectedProject!) && selectedProject!.hasValidAssetsPath() : false
     }
 
     // TODO: Too much state manipulation. fix it buddy yea? HEY? fix it.
     // TODO: ......
     // TODO: ...... Terrible .......
     // FIXME:
-    func addProject(project newProject: XCProject) {
-        addProject(project: newProject, index: 0)
+    func addProject(#project: XCProject) {
+        addProject(project: project, index: 0)
     }
     
     func addProject(project newProject: XCProject, index: Int) {

   
    // TODO: Find better hooks for these calls.
    private func storeRecentProjects() {
        let projects = recentProjects?.map { (proj: XCProject) -> [NSString: NSData] in
            return proj.serialized
        }
        
        NSUserDefaults.standardUserDefaults().setObject(projects, forKey: kRecentProjectsKey)
        storeSelectionState()
    }

        NSUserDefaults.standardUserDefaults().setBool(didSetProject, forKey: kSelectionStateKey)
    }
    
    ///
    ///
    private func loadRecentProjects() {
        let projectDicts = NSUserDefaults.standardUserDefaults().objectForKey(kRecentProjectsKey) as? [[String: NSData]]
        didSetProject = NSUserDefaults.standardUserDefaults().boolForKey(kSelectionStateKey)
        
        func validProject(dict: [String: NSData]) -> Bool {
            let validPath =  BookmarkResolver.isBookmarkValid(dict[PathKey])
            let validAsset = BookmarkResolver.isBookmarkValid(dict[AssetPathsKey])
            return validPath && validAsset
        }
        
        // Make sure the current selected project is valid and adjust the selection state accordingly.
        if let dict = projectDicts?.first where didSetProject {
            didSetProject = validProject(dict)
        }
        // Filter out invalid/corrupted projects
        recentProjects = projectDicts?.filter(validProject)
                                      .map(XCProject.projectFromDictionary)
        storeRecentProjects()
    }
    
