         dispatch_barrier_sync(queue) { [weak self] in
             guard let weakSelf = self else { return }
             
-            let arrayBox = weakSelf.lookup(T)
             result = (0..<number).map { _ in T(id: weakSelf.uuid()) }
-            arrayBox.value.appendContentsOf(result)
-            weakSelf.store[String(T)] = arrayBox
+            weakSelf.lookup(T).value.appendContentsOf(result)
         }
         
         return result

            if object.id < potentialId {
                fatalError("Tried to insert an invalid id")
            } else {
                let arrayBox = weakSelf.lookup(T)
                arrayBox.value.append(object)
                weakSelf.store[String(T)] = arrayBox
                weakSelf.uuid()
            }
        }

    }
    
    private func lookup<T: KStorable>(_: T.Type) -> ArrayBox<KStorable> {
        var boxedArray: ArrayBox<KStorable>
        
        if let storedBoxedArray = store[String(T)] {
            boxedArray = storedBoxedArray
        } else {
            boxedArray = ArrayBox<KStorable>([])
            store[String(T)] = boxedArray
        }
        
        return boxedArray
    }
}
