Subroutines now do not use global variables.

Which is totally OO, and I am modern.