Initialize variables to zero for all procs and small tweaks.