Convert activity to set