Further optimization in adding to open set'