Move default SCM code inside the library