Changed patterns to use nbt.