Rename TRACKED to DETACHED.
Add comments.