Fix issue #403 - Replaced deprecated "schema" property with "attachSchema" method.