Unused local variables removed