Complete first version; add references.