Added inherit method.