Added base methods to classes.