Generic detach/attach methods added