Tidying up references.