Replaced deprecated "schema" property with "attachSchema" method.