Added detachd and attach, a dtach replacement.