How to manage/prioritize energy flows?