Removed redundent code.