Fixed card counterbalancing, added lambda weighting function.