LOCAL: Adding patterning code logging