A new study shows that bacteria need the resistance to pilus retraction that occurs upon contact with a surface in order to sense surfaces and excrete the glue that makes them firmly adhere.