Fix missing import, removed unused pdb statements
Daemonized