Removed unused local variables