         
         guard let taskDictionary = dictionary,
             let token = taskDictionary[TaskConstants.token.rawValue] as? String
-            else { return nil }
+            else { return }
         
         let append = !newQueue.contains{ $0.task?.token == token }
         
         if append {
             newQueue.append(request)
-            return persist(queue: newQueue) ? newQueue : nil
+            pendingQueue = persist(queue: newQueue) ? newQueue : pendingQueue
         }
-        
-        return newQueue
     }
     
     private func persist(queue queue: Queue) -> Bool {

        return queue
    }
    
    private func saveRequest(request: Request, withQueue queue: Queue) -> Queue? {
        
        var newQueue = queue
        var dictionary:JSON?
        
        if let task = request.task {

    }
    
    public func addTask(task: Task) {
        if task.persist {
            persistTask(task)
        }
        let request = Request(task: task)
        return appendRequest(request)
    }
    
    public func persistTask(task: Task) {
        let request = Request(task: task)
        saveRequest(request)
    }
    
    public func executeTask(task: Task) {
