First pass at daemon structure.