Also, let's move all these variable declarations up top.