Implemented reference processing.