Adding daemonize to postpocessing

Added the daemonize function to postprocess. Some issues with spacing due to my editor.