Use %dist correctly.