Added distribution logging
Optimized Distribution