Automated pattern registration a bit more.