Refactoring of cpu/peria.
Use functional features to separate evaluate function.