Added code to convert it into a daemon.
This will create a new commit in order to revert the existing changes.