Moved SC code to separate folder