Pattern reconstruction improvements.