Extend functionality and setup prototype chain from subclasses.