Made references optional for copying.
Merge branch 'origin/master'