Finish the logic of ProgessPie

It works for both cases of user.