Inherited flags

Add the inherited flags feature