Encapsulating this in a position function is very smart!
I wish more display code did this.