Improved variable names by wrapping page output in a function