Support detach flag by default