Add check when starting devicemanager
Remove debugging option