Attach/detach functions

Updated: October 26, 2022