BUG FIX: Declare the variable before using it.