Move static functions to top of file so they don't need to be declared.