fortio: moved declaration to top of function.