Improved formatting of references.