Fix not duration syntax and update patterns.