Works as a daemon now