Implement first pass at getReferences