Added another tidying function.