Unused variables removed.