Core: Add priority assignment