Implemented refinement. Playing with portage.