Improvements on email priority checks. Not fully functional yet.