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

        NSUserDefaults.standardUserDefaults().setBool(didSetProject, forKey: kSelectionStateKey)
    }
    
    /*
        Load Recent Projects.
        Summary: Loads projects and checks if any project bookmark or asset bookmark corruption
    */
    private func loadRecentProjects() {
        let projectDicts = NSUserDefaults.standardUserDefaults().objectForKey(kRecentProjectsKey) as? [[String: NSData]]

        let validProjectDicts = projectDicts?.filter { (dictionary: [String: NSData]) -> Bool in
            return BookmarkResolver.isBookmarkValid(dictionary[PathKey]! as Bookmark)
        }
        
        recentProjects = validProjectDicts?.map { (a: [String: NSData]) -> XCProject in
            let project = XCProject.projectFromDictionary(a as [String: NSData])
            return project.hasValidAssetsPath() ? project : XCProject(bookmark: project.bookmark)
        }
        
        didSetProject = NSUserDefaults.standardUserDefaults().boolForKey(kSelectionStateKey)
        
        storeRecentProjects()
    }
    

    
    // Return whether the selected project is suitable for script execution
    func isSelectedProjectValid() -> Bool {
        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: XCProject) {
        addProject(project: project, index: 0)
    }
    
    func addProject(project newProject: XCProject, index: Int) {
