First prioritization seems to work
Useful version for personal use