Added element priority.  Enhanced joint testing (for now).