Cleaned daemon class