Priority dict functional