General functions which have been helpful at one time or another.