Add methods to basic objects.