Guess I'll declare the vars outside the ifs...