Elastic matching