Adding basic methods to the type definitions.