Move function in daemonizeVariable structure.
Move declaration of damonizeVariable structure.