Added default values for parameters
Using script as daemon