Please declare these variables where they are actually used.