Added function to work on the MA law project