Another attempt at dist