Added dead code elimination.