Now implemented priority handling.