Simplify dist