Add default methods for objects.