Don't declare functions inside functions - not all C compilers support