Added priorities.

Added priorities to the GUI and JSON.