Attach/detach functions

Updated: April 19, 2023