Added sides_per_die argument