Use explicit variable declaration to avoid global scoping