Updating to run as daemon