CleanUp Example Code
Added detach methods