Putting sdc function in its own file