Added pinned batch allocation method.