Added confdir flag, no logic yet