Is there a reason to use a variable rather than a function? It would make the code below clearer and faster.