Adding elements to the interface. Add generate method to calculate size of chunk. Other changes.