Modified twopile to the new system.