Why is this a function, rather than just a variable?