A smarter way to straighten.