onelinerize
Save uri of last SG to a file too
Move vars to top / Improve chan management / Add vars for URI file