Adding missing parts for the optimal priority assignment