Added support for priority