Daemon: use stoll function