Removed uses of the 'function' keyword -- POSIX-compliant scripts don't use it.