Merge "Set attachToRoot instead of manually doing so."