Main for RSC