Latest pie rotating algorithm