Adds clear user segments function