Added basic 'priority mode' functionality. Still needs some work on the priority logic as it probably does not behave as intended