Now inventories are centered for any number of objects

The weighting might be wrong. I might need walter =(