Added attachBaseSchema() method