Unused local variable problem fixed.