Finishing the size and bounds acid query functions