Started implementation of daemon function #30