Add switchDaemon function to switch daemon Process.
Remove unwated call daemon function.