Thank you. I changed it to signAwareModulo() and tried to refactor it all with pattern-matching.