Added code to semdemo