Cleaned up some old debug lines.
Added support for Priorities