Fixed missing semicolons.
Removed unused variables.