Implement writeFeatures