Make Chunkby generic