Remove method updated and clear method added.