Added resource priority handling, etc