Autopartitioning