Removed unused variables warnings.