Added a thread priority class