Added daemon code to pull commands from intern and execute them