Updated position of using declarations in functions