Added support for item priority