Fixing up functions as objects.