Change script into a daemon, normalise cooldown value, add config defaults