Minor modifications to ElasticLayerAlignment