A new algorithm could help understand the structure of liquids, and how they flow through porous media. Theoretical physicists have now implemented an algorithm for analyzing void space in sphere packing, where the spheres need not all be the same size.