Cleaned up some code and changed up the priorities example