Could this section be in a function?