Initialize a few more variables.
Parameters are unused.
Correct condition.
Initialize another bunch of variables.