Implemented changes to the citation generation routine.