Added ability to mark certain patterns read only