Added the detach mode flag.