New inheritance now works.
Fixed inheritance, state actually runs now.