Removed unused local variables.