Some stuff for controling SC in GUI