Added ability to skip identifying layers based on a Regexp.