Made pd command much faster