Improve code of priorities.