Since you’ve implemented the max effort method,you’ll probably like conjugate.If so take a look at this