Shared extensions to core classes.