Updated logical inheritance.
Added ID recognition.