Adds patmat assignment