Removed redudant code.