Fixed cost mistakes, cleaned up rebalancing a bit