Tested version with 5 partitions