Removed duped code.