Removed unused variables found by compiler.