Piles: more fixes.