Updated distribution.c