Replaced deprecated Set library