New method for loading references.
Added some comments.