Moved all variable declaration and initiation to start of function
Moved all variable declaration and initiation to start of function

wbhart/flint2,jpflori/flint2,fredrik-johansson/flint2,dsroche/flint2,dsroche/flint2,jpflori/flint2,jpflori/flint2,dsroche/flint2,dsroche/flint2,wbhart/flint2,fredrik-johansson/flint2,jpflori/flint2,wbhart/flint2,fredrik-johansson/flint2