Please follow the existing code conventions. Can you move the declarations up to the top of the function?