Works, but I don't completely understand how...