Adding functions to create and format partitions.