Use elastica instead of own implementation.