Added methods to get buffer sizes.