Removed a number of obsolete functions.