Moved daemon into own script