Removed unnecessary logic.