Law firms aren’t known for preemptively building technology, but when a recent 5-4 U.S. Supreme Court decision confirming the lawfulness of arbitration agreements banning class or collective actions was announced on Monday, employment firm Ogletree Deakins was ready with an automated tool.

Attorneys at Ogletree Deakins had been watching the case closely for months. Shareholder Ron Chapman attended the Supreme Court oral argument, hoping to get a sense of how the justices might rule. The firm decided to make an educated guess on the outcome—that the high court would stand with companies looking to mandate class action waivers for employees—and take a gamble: The firm began development of an app that would automate the process for those companies last December.