         self.idKey = idKey
         self.pageKey = pageKey
         self.pageTotalKey = pageTotalKey
+        
+        self.perPageKey = perPageKey
+        self.perPage = itemsPerPage
         
         super.init()
         self.syncThread = Thread(target: self, selector: #selector(self.syncLoop), object: nil)

        
    }
    
    public func syncLoop() {
        
        do {

    
    /// The number of pages.
    public var pages: UInt = 1
    public var usePerPage: Bool = false
    public var perPage: Int = 1
    public var headers: HTTPHeaders?

    
    public var idKey: String
    public var pageKey: String
    public var pageTotalKey: String
    public var perPageKey: String
    
    public var delegate: SimpleSyncDelegate?
    
