Daemonmode and profiling enhancements

Tridge, let me know if you'd prefer this as separate PRs (my guess is this is non controversial)